package lesson5;

public class Demo1 {
    public static void main(String[] args) {
//        Runtime runtime1 = Runtime.getRuntime();
//        Runtime runtime2 = Runtime.getRuntime();
//        System.out.println(runtime1 == runtime2);



        MyClass myClass1 = MyClass.getInstance();
        MyClass myClass2 = MyClass.getInstance();
        System.out.println(myClass1 == myClass2);
        //1 false
        //2 false
        //3 false
        //4 false
        //5 false
        //6  true
        //7 false
        //8 false
        //9 false
        //10 false
        //11 false
        //12 false
        //13 false
        //14 false
        //15 true
        //16 false
    }
}
